<?php namespace module\base;

class Message
{

	public function display()
	{
		return View::fetch('module/base/template/display.html');
	}

	public function submit($kid)
	{
		$model=new \system\model\ReplyBase();
		if ($model->store($kid)) {
			return true;
		}else{
			message( $model->getError(), u( 'admin/message/post', [ 'm' => $_GET['m'] ] ), 'error' );
		}
	}
}
